package com.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/file")
public class FileUpload {
    @RequestMapping("/upload")
    public String upload(MultipartFile file){
        return file.getOriginalFilename();
    }
}
